package com.demo.wrapper.pojo;

import com.demo.wrapper.enums.AggEnum;
import lombok.Data;

/**
 * 聚合参数接收类
 *
 * @author arthur_zhou
 */
@Data
public class Agg {

    private AggEnum aggEnum;

    private String name;

    private String column;

    private Object ext1;
    private Object ext2;
    private Object ext3;
    private Object ext4;


    public Agg(AggEnum aggEnum, String name, String column) {
        this.aggEnum = aggEnum;
        this.name = name;
        this.column = column;
    }

    public Agg(AggEnum aggEnum, String name, String column, Object ext1) {
        this.aggEnum = aggEnum;
        this.name = name;
        this.column = column;
        this.ext1 = ext1;
    }

    public Agg(AggEnum aggEnum, String name, String column, Object ext1, Object ext2) {
        this.aggEnum = aggEnum;
        this.name = name;
        this.column = column;
        this.ext1 = ext1;
        this.ext2 = ext2;
    }

    public Agg(AggEnum aggEnum, String name, String column, Object ext1, Object ext2, Object ext3) {
        this.aggEnum = aggEnum;
        this.name = name;
        this.column = column;
        this.ext1 = ext1;
        this.ext2 = ext2;
        this.ext3 = ext3;
    }

    public Agg(AggEnum aggEnum, String name, String column, Object ext1, Object ext2, Object ext3, Object ext4) {
        this.aggEnum = aggEnum;
        this.name = name;
        this.column = column;
        this.ext1 = ext1;
        this.ext2 = ext2;
        this.ext3 = ext3;
        this.ext4 = ext4;
    }

    public Agg(AggEnum aggEnum, Object ext1) {
        this.aggEnum = aggEnum;
        this.ext1 = ext1;
    }
}
